SaveToAPrevious
Document ShellThe
SaveToAPrevious
method copies the content of this draft to the specified previous draft of the same document.
ODDraft SaveToAPrevious (in ODDraft to);
to
- A reference to the destination draft object, or
kODNULL
for the draft immediately previous to (below) this draft.- return value
- A reference to this draft object.
DISCUSSION
If theto
parameter is null, it is set to the draft immediately previous to (below) this draft. This method copies the content of all the drafts between this draft (inclusive) and theto
draft (exclusive) to theto
draft. It then makes all the drafts from this draft (inclusive) to theto
draft (exclusive) empty. The document shell can call theCollapseDrafts
method of this draft's document object to delete these empty drafts from the document.For this method to be successful this draft must have a reference count of 1, meaning that only the caller has a reference to this draft object. In addition, there must be no outstanding drafts between this draft (exclusive) and the
to
draft (exclusive). An outstanding draft has a reference count greater than 0, meaning that it is being used by some object.Calling this method is equivalent to calling the
SaveToAPrevDraft
method of this draft's document, passing this draft as thefrom
parameter, and passing the sameto
parameter.EXCEPTIONS
kODErrOutstandingDraft
- There are outstanding drafts between this draft (exclusive) and the
to
draft (exclusive) or this draft has a reference count greater than 1.SEE ALSO
TheODDocument::CollapseDrafts
method (page 138).
TheODDocument::SaveToAPrevDraft
method (page 144).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help